All Questions
Tagged with socketexceptionnetwork-programming
23 questions
0votes
1answer
6kviews
java.net.SocketException: Connection reset, using HttpURLConnection on page GET
Programmatically getting page with Java (HttpURLConnection) gives me error java.net.SocketException: Connection reset. Works with Python and with Postman. Tried with other pages like gmail login page,...
-1votes
1answer
147views
Socket is closing immediately upon being created
I'm creating a NetUtils class which extends thread to handle socket communications in a GUI without blocking the main thread. My code looks like the following (assume all import are accounted for): ...
4votes
2answers
15kviews
SSH command execution fails with Exception - "net.schmizz.sshj.connection.ConnectionException: Connection reset Exception is thrown"
When a command is executed via SSH connection, often the command execution fails with Exception - "net.schmizz.sshj.connection.ConnectionException: Connection reset Exception is thrown". Problem ...
1vote
0answers
87views
C# TCPClient Write-Only connection
So I'm currently working on an C# application in VisualStudio, using an TCPClient and I get the following error when calling the Connect function: Unable to connect to the remote server System.Net....
0votes
1answer
758views
java.net.Socket constructor throws Socket exception if using 4 parameter version but not with 2 parameter version
Playing a bit with sockets I've found the following issue. This program: public class TestSocket { private static final String remoteHost = "gmail-smtp-in.l.google.com"; private static final ...
1vote
1answer
60views
Thread executes once more after it has been ended
This involves server-client networking via socket. Client thread is running on while(boolean) loop. It is accessed from ClientBean class and the condition is set false. this should stop the thread or ...
0votes
1answer
4kviews
java.net.SocketException: Socket is closed between Socket.accept() and Socket.getInputStream()
I'm trying to create a client/server connection and am still quite new to java as well. So the error I am getting tells me that the socket is closed. Following some work, I've managed to write the ...
0votes
2answers
2kviews
java sockets - keep track of how many socket files an application already has created
I am programming a simple application in java using sockets. I recently ran into an error: java.net.SocketException: Too many open files I have a couple of Questions regarding sockets now: I started ...
0votes
0answers
338views
Sending UDP Messages to IPAddress.Broadcast fails with SocketError 10065 (WSAEHOSTUNREACH)
Our C# applications targeting .NET 4.0 sends an udp broadcast from time to time to IPAddress.Broadcast. We recently received a log (run on Win 8.1 Pro), which shows up that sending to 255.255.255.255:...
0votes
1answer
1kviews
TcpClient can't connect To TcpListener
i want to use a TcpListener - TcpClient connection inside Network. It is only working when i start the application both on one device, when i use 2 different devices in Network there is this Error: A ...
1vote
0answers
11kviews
How to solve java.net.SocketException: Software caused connection abort: socket write error exception
I have this error SEVERE: SEVERE: Servlet.service() for servlet [jsp] in context with path [/firstjsp] threw exception [ClientAbortException: java.net.SocketException: Software caused connection ...
0votes
0answers
5kviews
A connection attempt failed because the connected party did not properly respond after
I have a problem here. Every time I launch my test program I seem to get a SocketException. Localhost og IP:127.0.0.1 works no problem, and the firewall is down when I test. The error comes both when ...
0votes
1answer
76views
Need help in Python3
I have the below code that i am trying the run using python3.2 interpreter. import socket #for sockets import sys #for exit #from UserString import MutableString #create an INET, STREAMing socket ...
0votes
1answer
109views
Network unreachable while know IP and PORT
i have a problem with error "Network unreachable" this is error message i got 04-01 23:39:06.455: E/ClientActivity(1932): Client Send Error:/192.168.1.25444 04-01 23:39:06.455: W/System.err(1932): ...
0votes
1answer
3kviews
Passing BufferedReader as a parameter of a constructor of a class
I have set up a network and I've set up the reading and writing stream to a socket as so: //Set up socket reads and writes final BufferedReader in = new BufferedReader( new InputStreamReader(...